package com.sky.config;

import com.sky.properties.HWOssProperties;
import com.sky.utils.HWOssUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: QingYingYan
 * @Date: 2025-10-20 18:19
 * @Description:
 */
@Configuration
public class CommonConfig {
    @Bean
    public HWOssUtil hwOssUtil(HWOssProperties hwOssProperties){
        HWOssUtil hwOssUtil = new HWOssUtil(hwOssProperties.getEndpoint(),hwOssProperties.getAccessKeyId(),hwOssProperties.getAccessKeySecret(),hwOssProperties.getBucketName());
        return hwOssUtil;
    }
}
